home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000209_amos-request@svcs1.digex.net_Sat Sep 20 03:47:12 1997.msg < prev    next >
Text File  |  1997-10-01  |  4KB  |  83 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id DAA09851
  3.     for <mcox@access.digex.net>; Sat, 20 Sep 1997 03:47:11 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id CAA00740
  6.     for amos-out; Sat, 20 Sep 1997 02:15:23 -0400 (EDT)
  7. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id CAA00737
  9.     for <amos-list@svcs1.digex.net>; Sat, 20 Sep 1997 02:15:22 -0400 (EDT)
  10. Received: from cu.cu-muc.de (BBS.cu-muc.de [195.38.157.2])
  11.     by mail2.access.digex.net (8.8.5/8.8.5) with SMTP id CAA25782
  12.     for <amos-list@access.digex.net>; Sat, 20 Sep 1997 02:15:17 -0400 (EDT)
  13. X-ROUTED: Sat, 20 Sep 1997 08:16:52 -0500
  14. X-TCP-IDENTITY: Platon
  15. Received: from cu-muc.de [195.38.157.101] by cu.cu-muc.de with smtp
  16.     id AIBABLDP ; Sat, 20 Sep 1997 08:16:28 -0500
  17. From: Chris Hodges <platon@cu-muc.de>
  18. To: amos-list@access.digex.net
  19. Date: Sat, 20 Sep 1997 07:56:02 EST5
  20. Message-ID: <yam7202.128.140633496@cu.cu-muc.de>
  21. In-Reply-To: <tcppop3.543984@cu.cu-muc.de>
  22. X-Mailer: YAM 1.3.4 [040] - Amiga Mailer by Marcel Beck
  23. Subject: Re: Mainly for Chris Hodges
  24. MIME-Version: 1.0
  25. Content-Type: text/plain; charset=iso-8859-1
  26. Content-Transfer-Encoding: 8bit
  27. X-MIME-Autoconverted: from quoted-printable to 8bit by svcs1.digex.net id CAA00738
  28. Status: O
  29. X-Status: 
  30.  
  31. malcolm.murray@virgin.net wrote on 20-Sep-97:
  32.  
  33. > When using the AMCAF disk accesing commands, such as Examine Dir,
  34. > Examine Next$ etc. I've found a problem.
  35.  
  36. Hmm...  could  you  please  send  in  an  example  program?  And  a  deeper
  37. description on whats happening and what's going wrong. I never had problems
  38. with the Examine #? Commands. I DO have problems  with  strings  sometimes,
  39. but  this  is  an  AMOS  related  bug and using a large Buffer and the Free
  40. function from time to time should cure the problem, if it's the AMOS String
  41. Bug.
  42.  
  43. > For some strange reason, if you don't set the Set Buffer to a high
  44. > number then it all messes up. Read a directory more than once and all
  45. > sorts of files will be randomly missed out.
  46.  
  47. Can't be. Examine Next$ just uses the DOS functions,  so  it  can't  really
  48. cock up the list of files :-?
  49.  
  50. > Now I've obviously tried just having a large Set Buffer at the start
  51. > of the program but the thing is its a very complicated program which
  52. > uses a very big set buffer as it is. And even when it starts out OK,
  53. > after a while of variables being shifted here and there, the file
  54. > commands mess up again.
  55.  
  56. Sounds like a  string  buffer  problem  to  me.  AMCAF  doesn't  mess  with
  57. variables  nor  does  it heavily rely on the consistence of the AMOS string
  58. buffer...
  59.  
  60. > Is there anyway of avoiding this?
  61.  
  62. Use DUMMY=Free somewhere to do the string garbage collection.
  63.  
  64. > Why does the Set Buffer affect it at all in fact?
  65.  
  66. Well, no idea...
  67.  
  68. Each modification to a string creates a copy of it in the variable  buffer,
  69. the  old  one  still  stays  there until the buffer is full. Then a garbage
  70. collection is applied and all unused strings are thrown away.
  71.  
  72. But this process is a bit buggy in AMOS,  so  you  should  do  it  manually
  73. BEFORE the buffer gets full.
  74.  
  75. -- 
  76. Bye,�Chris�Hodges (http://home.pages.de/~platon/)  ï¿½__����__
  77. A4000/60, 24MB, 3.6GB HD, CD-ROM, CV64, FliFix�__��///���/�/�_____
  78. GCS�d�H�s-:++�!g�p?�!au�a20�w++�v?�C+++����   ï¿½\\\///���/�/_/�___/�LOGOUT
  79. E----�N++�K-�W------�-po+�t++@�!5�j--�R+�G?�   ï¿½\XX/����\__/�__/��FASCISM!
  80. tv-�b+�D--�B?�e+(++)*�u++�h!�f�!r�n+�!y+�   AMIGA�RULEZ!� ï¿½\/
  81.  
  82.  
  83.